import request from './apiConfig'
const base_url = '/emp-infos'

export function getEmpInfoById(id) {
    return request({
        url: `${base_url}/${id}`,
        method: 'GET',
    })
}

export function saveOrUpdateEmpInfo(emp){
    return request({
        url: base_url,
        method: 'POST',
        data:emp
    })
}